package com.zc.designmodel.creative.builder;

/**
 * @author: zhuCan
 * @date: 2020/4/11 15:58
 * @description:
 */
public class MacBookBuilder extends ComputerBuilder{

  private Computer computer =new MacBook();


  @Override
  protected void buildCpu(String cpu) {
    computer.setCpu(cpu);
  }

  @Override
  protected void buildBoard(String board) {
   computer.setBoard(board);
  }

  @Override
  protected void buildOS() {
   computer.setSystemOS();
  }

  @Override
  protected Computer build() {
    return computer;
  }
}
